package com.cloud.mybatis.mapper;

import com.cloud.mybatis.entity.ProductEntity;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ProductMapper {
    @Insert("insert into product(name) values(#{product.name})")
    public void save(@Param("product") ProductEntity product);
}
